<div class="modal-header">
    <h3 class="modal-title">添加数据模型</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal form-content" name="schema_Form">
        <div class="form-group">
            <label for="schema_code" class="control-label col-xs-2">模型编码</label>
            <div class="col-xs-10">
                <input type="text" ng-model="item.schema_code" class="form-control" unique-schema-code
                       required name="schema_code" id="schema_code" placeholder="数据模型编码">
                <span ng-show="schema_Form.schema_code.$error.schema_code_unique" class="form_error">模型编码重复.</span>
            </div>
        </div>
        <div class="form-group">
            <label for="schema_name" class="control-label col-xs-2">模型名称</label>
            <div class="col-xs-10">
                <input type="text" ng-model="item.schema_name" class="form-control"
                       required name="schema_name" id="schema_name" placeholder="数据模型名称">
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button"
            ng-disabled="schema_Form.schema_name.$invalid || schema_Form.schema_code.$invalid"
            ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>